﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using TMSIM.Client.BizGIS.Business;
using ESRI.ArcGIS.Controls;

namespace TMSIM.Client.BizGIS.UI
{
    public partial class RCITS_MapLayerBizCtrl : UserControl //: GISCommon.RCITS_MapLayer 
    {
        public RCITS_MapLayerBizCtrl()
        {
            InitializeComponent();
        }

        private TOCControlHelper tocHelper = new TOCControlHelper();
        private string m_mapDoucment = "广东省";

        private AxMapControl m_mapControl = null;
        /// <summary>
        /// 描述：绑定地图控件到图层控件
        /// </summary>
        /// <param name="inMapControl">地图控件</param>
        public void SetBuddyMapControl(AxMapControl inMapControl)
        {
            m_mapControl = inMapControl;
           
            tocHelper.SetBuddyMapControl(m_mapControl, this.tv_MapLayer, m_mapDoucment);
            tv_MapLayer.Nodes[0].Checked = true;

            //SysCommon.UI.LoadingForm.DoneLoading(true);
        }

        /// <summary>
        /// 描述：设置在图层控件中显示的地图名称
        /// </summary>
        /// <param name="mapDocument"></param>
        public void SetMapDocumentTitle(string mapDocument)
        {
            m_mapDoucment = mapDocument;
        }

    }
}
